package com.ruoyi.eam.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.eam.api.domain.EamLocation;
import com.ruoyi.eam.api.factory.RemoteEamFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * emaLocation服务
 *
 */
@FeignClient(contextId = "remoteEamService", value = ServiceNameConstants.EMA_SERVICE, fallbackFactory = RemoteEamFallbackFactory.class)
public interface RemoteEamService {

    @GetMapping("/eam/{id}")
    R<EamLocation> getEamLocationById(@PathVariable("id") Long id);
}
